Search results
122 packages found
A random weighted item chooser with custom seed option for JavaScript and TypeScript.
Pick random data from array or object with specific filter
Select random items from a pool of items
Randomly pick an item from a set (using the specified probabilities).
Returns a random item from an array.
Get a random item from a list
Randomly pick a item from an array of items by a weight callback
returns a random item in an Array
A dead-simple module for picking a random item with weights.
A utility to pick random elements from an array
Generate a function that returns random items from a list with specified frequencies.
Seedable random number generator supporting many common distributions.
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
Easily choose a random item from a weighted list of items.
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
Generates a hash for each item of an array. Useful for generating deterministic React keys.
Pick a random item from a weighted list.
A simple js-class to put an array into an urn and draw random items from it - with or without replacement.
Get consecutively unique elements from an array